package com.codi.bus.core.service;

import com.codi.bus.core.fund.request.PortfolioTransferRequestDto;
import com.codi.bus.core.fund.response.PortfolioTransferResult;
import com.codi.bus.core.vo.PortfolioTransferStatusVo;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * 模块名
 *
 * @author spy
 * @version 1.0 2018-01-30
 * @since 1.0
 */
public interface PortfolioTransferService {

    PortfolioTransferResult transfer(PortfolioTransferRequestDto dto);

    @Transactional(propagation = Propagation.REQUIRES_NEW)
    void updateTransferStatusSuc(PortfolioTransferStatusVo statusVo);

    @Transactional(propagation = Propagation.REQUIRES_NEW)
    void updateTransferStatusFail(PortfolioTransferStatusVo statusVo);
}
